export interface VideoPlayerProps {
  src: string;                 // 视频源
  poster?: string;            // 封面图
  autoplay?: boolean;         // 自动播放
  muted?: boolean;            // 是否静音
  width?: number | string;    // 宽度
  height?: number | string;   // 高度
  className?: string;         // 自定义类名
  onPlay?: () => void;        // 播放回调
  onPause?: () => void;       // 暂停回调
  onTimeUpdate?: (time: number) => void;  // 时间更新回调
  onVolumeChange?: (volume: number) => void; // 音量变化回调
  onSpeedChange?: (speed: number) => void; // 播放速度变化回调
}

export interface VideoControlsProps {
  playing: boolean;
  currentTime: number;
  duration: number;
  volume: number;
  muted: boolean;
  playbackSpeed: number;
  isFullscreen: boolean;
  onPlayPause: () => void;
  onSeek: (time: number) => void;
  onVolumeChange: (volume: number) => void;
  onToggleMute: () => void;
  onSpeedChange: (speed: number) => void;
  onToggleFullscreen: () => void;
} 